<template>
  <div class="loading-state">
    <div class="loading-spinner"></div>
    <p>加载中，请稍候...</p>
  </div>
</template>

<script setup>
defineOptions({ name: 'LoadingState' })
</script>

<style lang="scss" scoped>
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 40px;

  .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(81, 138, 255, 0.2);
    border-left-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
  }

  p {
    color: var(--text-secondary);
    font-size: 14px;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
</style>
